#include "transitHub.h"
#include "logger.h"
#include <stdio.h>
#include <iostream>
using namespace std;
transitHub* a;
int main()
{
    int port,way;
   // cin>>port>>way;

    port=1;way=57600;
    a=transitHub::getInstance();
    while(!a->portOpen(port,way)){
    cout<<"fail!\n";
    cout<<"(port way)//ttyS$port"<<endl;
    return 1;
    }
    int data[20];
    for(int i=0;i<20;i++)
        data[i]=0;

    a->doLoopTx(data,data+18);
    a->portClose();

    return 0;
}
